//
//  DataModel.m
//  UI22_Work
//
//  Created by dllo on 16/8/14.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "DataModel.h"

@implementation DataModel
- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"contents"]) {
        ContentsModel *contents = [ContentsModel modelWithDic:value];
        _contents = contents;
    } else if ([key isEqualToString:@"mv_show_play"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MvlistModel *mv = [MvlistModel modelWithDic:dic];
            [array addObject:mv];
        }
        _mv_show_play = array;
    }
}

@end
